package com.zs.toolbox.web2j.system.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zs.toolbox.web2j.system.core.entity.WtRoleEntity;
import com.zs.toolbox.web2j.system.core.entity.WtRoleWithPermissionEntity;

import java.util.List;

/**
 * <p>
 * 后台角色表 服务类
 * </p>
 *
 * @author eric.zhang
 * @since 2018-09-26
 */
public interface WtRoleService extends IService<WtRoleEntity> {

    List<WtRoleEntity> selectUserRolesByUserId(Long id);

    WtRoleWithPermissionEntity getRoleWithPermissionById(Long id);

    void saveRolePermission(Long roleId, List<Long> permissionIds, Long userId);
}
